﻿define([], function () {
    return {
        defaultRoutePath: "/",
        routes: {
            "/": {
                templateUrl: 'Index.html',
                title: "Dashboard",
                dependencies: [
                    'controllers/homeController'
                ]
            },

            "/Book/:type/List": {
                templateUrl: 'Book/Books.html',
                title: "Manage Books",
                dependencies: [
                    'controllers/book/bookListController'
                ]
            },
            
            "/Book/Edit/:id": {
                templateUrl: 'Book/EditBook.html',
                title: "Edit book",
                dependencies: [
                    'directives/ngTinymce',
                    'controllers/book/editBookController'
                ]
            },

            "/Book/New": {
                templateUrl: 'Book/EditBook.html',
                title: "Create new book",
                dependencies: [
                    'directives/ngTinymce',
                    'controllers/book/editBookController'
                ]
            },

            "/Book/:bookId/Chapter": {
                templateUrl: 'Book/EditChapter.html',
                title: "Edit chapter",
                dependencies: [
                    'directives/ngTinymce',
                    'controllers/book/editChapterController'
                ]
            },

            "/Book/:bookId/Chapter/:chapterId": {
                templateUrl: 'Book/EditChapter.html',
                title: "Edit chapter",
                dependencies: [
                    'directives/ngTinymce',
                    'controllers/book/editChapterController'
                ]
            },

            "/ManageTags": {
                templateUrl: 'ManageTags.html',
                title: "Manage Tags",
                dependencies: [
                    'controllers/manageTagsController'
                ]
            },

            "/Author/MyPage": {
                templateUrl: 'Author/MyPage.html',
                title: "My Page",
                dependencies: [
                    'controllers/author/myPageController'
                ]
            }
        },
        menu: [
            {
                "Text": "For moderators",
                "Route": null,
                "Children": [
                    {
                        "Text": "Moderate books",
                        "Route": "Book/Mod/List",
                        "Icon": "filter",
                        "Children": null
                    },
                    {
                        "Text": "Moderate comments",
                        "Route": "Mod/Comments",
                        "Icon": "comment",
                        "Children": null
                    },
                    {
                        "Text": "Manage tags",
                        "Route": "ManageTags",
                        "Icon": "tags",
                        "Children": null
                    },
                    {
                        "Text": "Manage categories",
                        "Route": "Mod/Categories",
                        "Icon": "inbox",
                        "Children": null
                    },
                    {
                        "Text": "Archives",
                        "Route": "Mod/Archives",
                        "Icon": "cloud-upload",
                        "Children": null
                    }]
            }, {
                "Text": "For authors",
                "Route": null,
                "Children": [
                    {
                        "Text": "My page",
                        "Icon": "user",
                        "Route": "Author/MyPage",
                        "Children": null
                    },
                    {
                        "Text": "Create new book",
                        "Icon": "pencil",
                        "Route": "Book/New",
                        "Children": null
                    },
                    {
                        "Text": "Manage books",
                        "Route": "Book/Author/List",
                        "Icon": "th-large",
                        "Children": null
                    },
                    {
                        "Text": "Statistics",
                        "Route": "Author/Statistics",
                        "Icon": "stats",
                        "Children": null
                    },
                    {
                        "Text": "Bookmarks",
                        "Route": "Author/Bookmarks",
                        "Icon": "calendar",
                        "Children": null
                    }]
            }, {
                "Text": "Settings",
                "Route": null,
                "Children": [
                    {
                        "Text": "Change password",
                        "Route": "Settings/ChangePassword",
                        "Icon": "lock",
                        "Children": null
                    }, {
                        "Text": "Personal informations",
                        "Route": "Settings/PersonalInformation",
                        "Icon": "briefcase",
                        "Children": null
                    }, {
                        "Text": "Account settings",
                        "Route": "Settings/AccountSettings",
                        "Icon": "wrench",
                        "Children": null
                    }, {
                        "Text": "Helps",
                        "Route": "Help",
                        "Icon": "info-sign",
                        "Children": null
                    }]
            }]
    };
});